import request from '@/utils/request'

// 查询订单明细列表
export function listOrderDtl(query) {
  return request({
    url: '/tms/orderDtl/list',
    method: 'get',
    params: query
  })
}

// 初始化
export function initBean() {
    return request({
        url: '/tms/orderDtl/initBean',
        method: 'post'
    })
}

// 查询订单明细详细
export function getOrderDtl(id) {
  return request({
    url: '/tms/orderDtl/' + id,
    method: 'get'
  })
}

// 新增订单明细
export function addOrderDtl(data) {
  return request({
    url: '/tms/orderDtl',
    method: 'post',
    data: data
  })
}

// 修改订单明细
export function updateOrderDtl(data) {
  return request({
    url: '/tms/orderDtl',
    method: 'put',
    data: data
  })
}

// 删除订单明细
export function delOrderDtl(id) {
  return request({
    url: '/tms/orderDtl/' + id,
    method: 'delete'
  })
}
